Programming Languages (C & C++)

1. What is a Programming Language?

img

A programming language is set a of Instrucitons used to communicate with a computer.

It is used to create, software, applications, games and system programs.


2.. Types of Programming Languages

img
  1. Low-level Languages (Mchine & Assembly)
  2. High-Level Languages (C, C++, Java, Python)

Important: C & C++ are high-level languages.


3. What is C Language?

img
Definition
C is a high-level, structured, general-purpose programming language.
Developed By
Dennis Ritchie in 1972 at Bell Labs.
Features
  • Fast execution
  • Portable
  • Procedure-oriented
  • Foundation of all modern languages

Uses of C:

  • Operating Systems
  • Embedded Systems
  • Game Development
  • System Software

4. What is C++ Language?

c++ language img
Definition
C++ is an extension of C that supports Object-Oriented Programming (OOPs)
Developed by
Bjarne Stroustrup in 1979.
Features
  • Object-Oriented
  • Faster than Java
  • Supports classes & objects
  • Better memory control

Uses of C++:

  • Game Engines
  • Database Software
  • Browsers (Chrome)
  • Operating Systems

5. Difference Between C and C++

c and c++ img
C Language C++ Language
Procedure-Oriented Object-Oriented + Procedure-Oriented
Developed in 1972 Developed in 1979
Less Secure More Secure(OOP features)

6. Important Terms of C & C++

important terms of c and c++ img
Compiler
Converts source code → machine code.
Syntax
Rules to write code.
Variable
Storage location with a name.
Function
A block of reusable code.

Important Exam Questions

  • Who developed C? → Dennis Ritchie
  • Who developed C++ → Bjarne Stroustrup
  • C is → Procedure-Oriented
  • C++ is → Object-Oriented
  • Compiler converts → Source code to Machine code
  • C and C++ are → High-Level Languages